package com.sdp.wx.db.wx_army.service.impl;

import com.sdp.wx.db.wx_army.entity.WxArmy;
import com.sdp.wx.db.wx_army.mapper.WxArmyMapper;
import com.sdp.wx.db.wx_army.service.IWxArmyService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-01-05
 */
@Service
public class WxArmyServiceImpl extends ServiceImpl<WxArmyMapper, WxArmy> implements IWxArmyService {

	@Override
	public WxArmy queryWxArmyByCode(String armyCode) {
		LambdaQueryWrapper<WxArmy> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(WxArmy::getArmyCode, armyCode);
		return getOne(queryWrapper,false);
	}

}
